package com.lengxf.milo.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.eclipse.milo.opcua.stack.core.types.builtin.DataValue;
import org.eclipse.milo.opcua.stack.core.types.builtin.NodeId;
import org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode;

@Data
@AllArgsConstructor
public class WriteResult {

    private String identifier;

    private NodeId nodeId;

    private Object writeValue;

    private DataValue dataValue;

    private StatusCode status;

    public boolean isSuccess() {
        return StatusCode.GOOD.equals(status);
    }

}
